module(..., package.seeall)

actions = {}

local jquery = require("zwsapi.js.jquery")


actions.js = function(user,dal,node,act,request)
   return node.content, "text/javascript"
end

actions.configured_js = function(user,dal,node,act,request)
   dal.config.jquery = jquery.js
   dal.config.more_javascript = dal.config.MORE_JAVASCRIPT or ""
   return cosmo.fill(node.content, dal.config), "text/javascript"
end